﻿using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace ybx_caller.controller
{
    public class HealthController : ApiController
    {
        // GET api/health
        public HttpResponseMessage GetHealth()
        {
            var healthStatus = new
            {
                Status = HealthManager.Instance.CurrentHealth.ToString()
            };
            return Request.CreateResponse(HttpStatusCode.OK, healthStatus);
        }
    }

}
